<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html lang="zh">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>修改密码</title>
    <link rel="stylesheet" href="../resources/css/bootstrap.min.css" />
    <link rel="stylesheet" href="../resources/css/font-awesome.min.css" />
    <link rel="stylesheet" href="../resources/css/ace.min.css" />
    <link rel="stylesheet" href="../resources/js/layer/skin/default/layer.css" />
</head>
<body>
<div class="page-content">
    <div class="page-header">
        <h1>修改密码</h1>
    </div>
    <div class="row">
        <div class="col-xs-12">
            <form id="save-form" class="form-horizontal" role="form" action="../user/setPassword" method="post">
                <input type="hidden" id="oldPassword1" name="oldPassword1" value="${sessionScope.loginUser.password}" />
                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right"
                           for="form-field-1">请输入旧密码</label>
                    <div class="col-sm-9">
                        <input type="password" id="oldPassword2" name="oldPassword2" class="col-xs-10 col-sm-8" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right"
                           for="form-field-1">请输入新密码</label>
                    <div class="col-sm-9">
                        <input type="password" id="newPassword" name="newPassword"
                               class="col-xs-10 col-sm-8" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right"
                           for="form-field-1">请确认新密码</label>
                    <div class="col-sm-9">
                        <input type="password" id="reNewPassword" name="reNewPassword"
                               class="col-xs-10 col-sm-8" />
                    </div>
                </div>
                <div class="clearfix form-actions">
                    <div class="col-md-offset-3 col-md-9">
                        <button class="btn btn-info" type="button" id="save-btn">
                            <i class="icon-ok bigger-110"></i> 确认修改
                        </button>
                        &nbsp; &nbsp; &nbsp;
                        <button class="btn" type="reset">
                            <i class="icon-undo bigger-110"></i> 重置
                        </button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script src="../resources/js/jquery-1.11.3.js"></script>
<script src="../resources/js/layer/layer.js"></script>
<script src="../resources/js/user/set.js"></script>
</body>
</html>
